/**
 * 
 */
package com.swim.phonenumprivacy.entity;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

/**
 * 游泳馆号码绑定表Entity
 * @author ljw
 * @version 2024-01-14
 */
@Table(name="t_natatorium_phonenum_bind", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="natatorium_info_id", attrName="natatoriumInfoId", label="游泳馆信息id"),
		@Column(name="subs_id", attrName="subsId", label="绑定关系id"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class NatatoriumPhonenumBind extends DataEntity<NatatoriumPhonenumBind> {
	
	private static final long serialVersionUID = 1L;
	private String natatoriumInfoId;		// 游泳馆信息id
	private String subsId;		// 绑定关系id
	
	public NatatoriumPhonenumBind() {
		this(null);
	}

	public NatatoriumPhonenumBind(String id){
		super(id);
	}
	
	@NotBlank(message="游泳馆信息id不能为空")
	@Length(min=0, max=64, message="游泳馆信息id长度不能超过 64 个字符")
	public String getNatatoriumInfoId() {
		return natatoriumInfoId;
	}

	public void setNatatoriumInfoId(String natatoriumInfoId) {
		this.natatoriumInfoId = natatoriumInfoId;
	}
	
	@NotBlank(message="绑定关系id不能为空")
	@Length(min=0, max=100, message="绑定关系id长度不能超过 100 个字符")
	public String getSubsId() {
		return subsId;
	}

	public void setSubsId(String subsId) {
		this.subsId = subsId;
	}
	
}